<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input[type="file"]{ /*css 选择器*/
            color: transparent;
            border-radius: 4px;
            color: #fff;
            cursor: pointer;
            width: 110px;
            overflow: hidden;
        }
        /* 兼容性 */
        input[type="file"]::file-selector-button{
            font-weight: 500;
            color: #fff;
            background-color: #409eff;
            padding: 6px 25px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <input type="file">
</body>
</html>